﻿<UserControl x:Class="wpfTool.PropertyGrid"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:wpfTool"
    Height="100" Width="300">
    <UserControl.Resources>
        <local:ScrollViewerConverter x:Key="scrollViewerConverter" />
    </UserControl.Resources>
    <StackPanel x:Name="rootPanel">
        <ScrollViewer VerticalScrollBarVisibility="Auto" Height="{Binding ElementName=rootWindow, Path=Height, Converter={StaticResource scrollViewerConverter}}">
            <Grid x:Name="theGrid">
                <Grid.RowDefinitions>
                    <RowDefinition Height="20" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="10" />
                    <ColumnDefinition />
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <GridSplitter x:Name="theSplitter" Grid.Column="2" Grid.RowSpan="3" Width="2" HorizontalAlignment="Center" />

                <Rectangle x:Name="grayRectV" Grid.Column="0" Grid.RowSpan="3" Fill="LightGray" />
                <Label x:Name="GridLabel" Grid.Row="0" Grid.ColumnSpan="4" Background="LightGray" Padding="2" FontSize="14" />




            </Grid>
        </ScrollViewer>

    </StackPanel>
</UserControl>
